deploy: Copy parent directories for modified config files
authorColin Walters <walters@verbum.org>
Mon, 15 Sep 2014 13:29:26 +0000 (09:29 -0400)
committerColin Walters <walters@verbum.org>
Tue, 16 Sep 2014 16:06:10 +0000 (12:06 -0400)
commit8f4ffa6950ace466f9338d5e6960e198ae3813a0
tree182442d5f203a3933b755795b9df7784246ceb52
parentb756a13a65c122a091c489ae737b82df02cd0d59
deploy: Copy parent directories for modified config files

Previously, in the case where a parent directory of a modified config
file was removed, we would throw an exception.  This happens when
switching from a tree that has some software (e.g. firewalld), to one
that does not.

While it's nice to have this warning that your config file probably no
longer applies, there's no need to make it so...fatal.

It's particularly problematic that the only easy workaround is to
remove the config files from your current tree - which breaks
rollback.

The solution then is for for us to take ownership of the parent
directories too into the new /etc.  Admins can clean up these files
afterwards at any time.

https://bugzilla.gnome.org/show_bug.cgi?id=734293
src/libostree/ostree-sysroot-deploy.c
tests/test-admin-deploy-etcmerge-cornercases.sh